﻿Public Class RSS
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Public Function FormatForXML(ByRef Data As String) As String

        Data = Data.Replace("&", "&amp;")
        Data = Data.Replace("\", "&quot;")
        Data = Data.Replace("'", "&apos;")
        Data = Data.Replace("<", "&lt;")
        Data = Data.Replace(">", "&gt;")

        Return Data
    End Function

End Class